package cn.tedu.controller;

import cn.tedu.service.CarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("car")
@CrossOrigin//放行JS的请求
public class CarController {
    @Autowired
    private CarService carServive;

    @RequestMapping("get")
    public Object get(){

        return carServive.get();

    }
}
